-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: [spearbit-72] cache dependencies.length earlier #40
Merged
jaypaik
merged 2 commits into
audit-2023-11-20
from
01-07-fix_spearbit-72_cache_dependencies.length_earlier
Jan 8, 2024
Merged
fix: [spearbit-72] cache dependencies.length earlier #40
jaypaik
merged 2 commits into
audit-2023-11-20
from
01-07-fix_spearbit-72_cache_dependencies.length_earlier
Jan 8, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jaypaik
force-pushed
the
01-07-fix_spearbit-86_store_sessionKeyData.contractAccessControlType_in_a_local_variable
branch
from
January 7, 2024 22:11
17145da
to
f987ff1
Compare
jaypaik
force-pushed
the
01-07-fix_spearbit-72_cache_dependencies.length_earlier
branch
from
January 7, 2024 22:12
a72e6ad
to
6bef45e
Compare
jaypaik
force-pushed
the
01-07-fix_spearbit-86_store_sessionKeyData.contractAccessControlType_in_a_local_variable
branch
from
January 7, 2024 22:28
f987ff1
to
9c6d531
Compare
jaypaik
force-pushed
the
01-07-fix_spearbit-72_cache_dependencies.length_earlier
branch
from
January 7, 2024 22:28
6bef45e
to
04609fa
Compare
jaypaik
force-pushed
the
01-07-fix_spearbit-86_store_sessionKeyData.contractAccessControlType_in_a_local_variable
branch
from
January 8, 2024 20:01
9c6d531
to
ae27491
Compare
jaypaik
force-pushed
the
01-07-fix_spearbit-72_cache_dependencies.length_earlier
branch
from
January 8, 2024 20:01
04609fa
to
487ec2d
Compare
@@ -350,11 +350,11 @@ abstract contract PluginManagerInternals is IPluginManager, AccountStorageV1 { | |||
} | |||
|
|||
// Check that the dependencies match the manifest. | |||
if (dependencies.length != manifest.dependencyInterfaceIds.length) { | |||
uint256 length = dependencies.length; | |||
if (length != manifest.dependencyInterfaceIds.length) { | |||
revert InvalidDependenciesProvided(); | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: can we get rid of the empty line here to indicate that the following for loop is a continued usage of length and logic on dependencies?
fangting-alchemy
approved these changes
Jan 8, 2024
jaypaik
force-pushed
the
01-07-fix_spearbit-86_store_sessionKeyData.contractAccessControlType_in_a_local_variable
branch
from
January 8, 2024 20:38
ae27491
to
2a05949
Compare
jaypaik
force-pushed
the
01-07-fix_spearbit-72_cache_dependencies.length_earlier
branch
from
January 8, 2024 20:38
487ec2d
to
8b20450
Compare
Base automatically changed from
01-07-fix_spearbit-86_store_sessionKeyData.contractAccessControlType_in_a_local_variable
to
audit-2023-11-20
January 8, 2024 22:27
jaypaik
deleted the
01-07-fix_spearbit-72_cache_dependencies.length_earlier
branch
January 8, 2024 22:28
jaypaik
added a commit
that referenced
this pull request
Jan 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Size before: 24.274
Size after: 24.273
https://github.com/spearbit-audits/alchemy-nov-review/issues/72